package demo3;
class Student12{
    String name;
    {
        System.out.println("我是构造代码块") ;
    }
    public Student12(){
        System.out.println("我是Student类的构造方法");
    }
}
public class Example12 {
    public static void main(String[] args){
        Student12 stu1 = new Student12();
        Student12 stu2 = new Student12();
    }
}

